<?php
/**
 * Created by JetBrains PhpStorm.
 * User: Administrator
 * Date: 25/05/11
 * Time: 15:02
 * To change this template use File | Settings | File Templates.
 */
require_once(Config::acquire('View', null, 'view'));
require_once("./Smarty/Smarty-3.0.8/libs/Smarty.class.php");

class SmartyView extends View
{


    private $smarty;

    public function __construct()
    {
        $this->smarty = new Smarty();
        $this->smarty->setTemplateDir('./html/templates');
        $this->smarty->clearAllCache();



    }

    public function assign($key, $var)
    {
        $this->smarty->assign($key,$var);
    }

    public function render($template)
    {
        $this->smarty->display($template);

    }
}
